<?php


namespace app\index\model;


use think\Model;

class GroupWarehouse extends Model
{
    /**
     * getWareHouseByGroup
     * 获取分组对应仓库
     * @url
     * @method
     * @param int $group 组id
     * @return array
     * @author Asira
     * @date 2021/2/24
     */
    public static function getWareHouseByGroup($group): array
    {
        $GroupWareHouseClass=new self();
        return $GroupWareHouseClass->where('group_id','=',$group)->where('del_flag','=',0)->column('warehouse_id');
    }

}